Joystick Notification Messages

Joystick messages notify your application that a joystick has changed position or that one of its buttons has changed states. Messages beginning with MM_JOY1 are sent to the function if your application requests input from the joystick using the identifier JOYSTICKID1, and MM_JOY2 messages are sent if your application requests input from the joystick using the identifier JOYSTICKID2.

The messages in the following table identify the status of the joystick buttons:

Message

Description

MM_JOY1BUTTONDOWN.2ZWW7

A button on joystick JOYSTICKID1 has been pressed.

MM_JOY1BUTTONUPDUS5NW

A button on joystick JOYSTICKID1 has been released.

MM_JOY1MOVEXRONKZ

Joystick JOYSTICKID1 changed position in the x- or y-direction.

MM_JOY1ZMOVE23X5Q7

Joystick JOYSTICKID1 changed position in the z-direction.

MM_JOY2BUTTONDOWNEWPP1W

A button on joystick JOYSTICKID2 has been pressed.

MM_JOY2BUTTONUP2EU193

A button on joystick JOYSTICKID2 has been released.

MM_JOY2MOVEXSONKZ

Joystick JOYSTICKID2 changed position in the x- or y-direction

MM_JOY2ZMOVE33X5Q7

Joystick JOYSTICKID2 changed position in the z-direction.

 

All messages report nonexistent buttons as released.